/**
 * 
 */
package skipList_02;
import java.util.Stack;
/**
 * @author tobias
 * Aug 5, 2014
 * 10:44:31 PM
 * The result of a search operation in a skip list
 */

public class SkipListSearchResult {

	private Stack st;
	private SkipListNode nd;
	
	/**
	 * @return Current stack (Nodes that were visited during the search)
	 */
	public Stack getSt() {
		return st;
	}
	/**
	 * 
	 * @param st Stack to set (Nodes that were visited during the search)
	 */
	public void setSt(Stack st) {
		this.st = st;
	}

	/**
	 * @return SkipListNode that was found using the search
	 */
	public SkipListNode getNd() {
		return nd;
	}

	/**
	 * 
	 * @param nd SkipListNode that was found using the search
	 */
	public void setNd(SkipListNode nd) {
		this.nd = nd;
	}
	/**
	 * Constructs a SkipListSearchResult with the stack and the node that was found
	 *
	 * @param st stack (Nodes that were visited during the search)
	 * @param nd SkipListNode that was found using the search
	 */
	public SkipListSearchResult(Stack st, SkipListNode nd)
	{
		this.st = st;
		this.nd = nd;
	}
}
